1720 IF LI = 0 THEN HOME : VTAB 6: PRINT TAB( 6);"-- CLASS LIST OF ";F$;" --"
1730 PRINT : PRINT " ";NM$(I);: IF SG(I,1) = < -63 THEN PRINT NW$;
1735 PRINT
1740 LI = LI +1
1750 IF LI <10 THEN 1770
1760 LI = 0: PRINT "-- ";: GET Q$: IF ASC(Q$) = 27 THEN KK = 70
1770 NEXT
1780 PRINT "-- ";: GET Q$
1790 RETURN
1800 REM <CTRL-J>--EXIT PROGRAM ROUTINE
1802 IF SX = 4 THEN PRINT : PRINT "LOW SCORE HAS BEEN REPLACED WITH -1 SHOULD I UPDATE DISK? Y/N ";: GET Q$:SW = 3: IF Q$ = "Y" THEN PRINT : GOSUB 2180
1803 PRINT
1810 IF SW = 2 THEN GOSUB 2180
1811 IF SW = 2 OR SW = 3 THEN PRINT "WANT A BACK-UP COPY Y/N? ";: GET Q$: PRINT : IF Q$ = "Y" THEN PRINT "PUT IN BACK-UP DISK ";: GET Q$: PRINT : GOSUB 2180: GOTO 1811
1820 PRINT "TYPE 'RUN' IF YOU WANT TO GRADE ANOTHER COURSE."
1830 END
1850 REM <CTRL-J>--READ FILES SUBROUTINE
1860 HOME : PRINT F$: VTAB 6: FLASH : PRINT "READING GRADE FILE": NORMAL :ND = 0
1865 FOR I = 0 TO 70:NK(I) = I: NEXT
1870 PRINT D$;"OPEN ";F$
1880 PRINT D$;"READ ";F$
1890 INPUT KK,ZZ
2120 FOR I = 0 TO ZZ: INPUT SU$(I): NEXT : FOR I = 1 TO KK: INPUT NM$(I): FOR J = 0 TO ZZ: INPUT SG(I,J): NEXT : NEXT
2150 PRINT D$;"CLOSE ";F$
2160 HOME :SW = 1
2170 RETURN
2180 REM <CTRL-J>-WRITE FILE SUBROUTINE
2200 HOME : PRINT F$: VTAB 6: FLASH : PRINT "WRITING GRADE FILE": NORMAL
2270 PRINT D$;"OPEN ";F$
2280 PRINT D$;"DELETE ";F$
2290 PRINT D$;"OPEN ";F$
2300 PRINT D$;"WRITE ";F$
2310 PRINT KK","ZZ
2420 FOR I = 0 TO ZZ: PRINT SU$(I): NEXT : FOR I = 1 TO KK: PRINT NM$(NK(I)): FOR J = 0 TO ZZ: PRINT SG(NK(I),J): NEXT : NEXT
2550 PRINT D$;"CLOSE ";F$
2560 HOME : RETURN
2570 REM <CTRL-J>--CODE-TEST DISPLAY
2580 PRINT "CODE"; TAB( 16);"TEST": PRINT : PRINT
2590 FOR I = 1 TO ZZ
2600 PRINT I; TAB( 15);SU$(I)
2610 NEXT I
2614 PRINT : PRINT : PRINT
2620 RETURN
2630 REM <CTRL-J>-NAME SEARCH SUBROUTINE
2640 REM <CTRL-J>-RETURNS (II) OR "ZZZ"
2650 II = 0
2660 INPUT " NAME --- ";T$
2670 LX = LEN(T$)
2680 IF LX = 0 OR T$ = "ZZZ" THEN POP : RETURN
2690 FOR I = 1 TO KK
2700 IF LEFT$(NM$(I),LX) = T$ THEN II = I: PRINT : PRINT NM$(I);" Y/N?";: GET A$: IF A$ = "Y" THEN I = 70: NEXT : RETURN
2710 NEXT
2720 PRINT : PRINT : FLASH : PRINT T$;" NOT IN ";F$: NORMAL
2730 FOR I = 0 TO 1000: NEXT I: CALL -998: CALL -958: GOTO 2640